package com.sky.controller.test1;

public class Test06 {
    public static void main(String[] args) {
        abstract02 abstract02 = new abstract02();
        abstract02.test01();
        abstract02.run();
    }
}
abstract class abstract01{
    private String name;
    //不能创建对象,核心就是被继承
    public abstract void run();
    public void test01(){
        System.out.println("abstract01");
    }
}
class abstract02 extends abstract01{
    @Override
    public void run() {
        System.out.println("abstract02");
    }
}
